#ifndef __OVERUNDERVOLTAGE_H
#define __OVERUNDERVOLTAGE_H

#define OUVOLTAGE_LEVEL_NONE  (0)//未过压
#define UNDERVOLTAGE_LEVEL_1  (1)//1级欠压(级别越高,欠压程度越高)
#define UNDERVOLTAGE_LEVEL_2  (2)//2级欠压(级别越高,欠压程度越高)
#define UNDERVOLTAGE_LEVEL_3  (3)//3级欠压(级别越高,欠压程度越高)
#define OVERVOLTAGE_LEVEL_1   (4)//1级过压(级别越高,过压程度越高)
#define OVERVOLTAGE_LEVEL_2   (5)//2级过压(级别越高,过压程度越高)
#define OVERVOLTAGE_LEVEL_3   (6)//3级过压(级别越高,过压程度越高)
#define OUVOLTAGE_LEVEL_QTY   (7)//

#define PHASE_UAB (0)
#define PHASE_UBC (1)
#define PHASE_UCA (2)
#define PHASE_QTY (3)


void OverUnderVoltage_Loop(void* pPara);


int OverUnderVoltage_Get(int phaseIdex,int level);

#endif

